import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Link ,Switch} from "react-router-dom";
import Login from './login'

import axios from 'axios'
axios.defaults.baseURL = 'http://47.96.21.88:8086/'
axios.interceptors.response.use(function(response){
  return response.data
},function(error){
  return Promise.reject(error)
})

class App extends Component {
  render() {
    return (
      <div className="App">

        <Router>
          <Switch>
            <Route exact path="/" component={Login} />
            <Route path="/home" component={Home} />
            {/* <Route path="/show" component={Show} /> */}
            
          </Switch>
          <div>
            
          </div>
        </Router>
 
      </div>
    );
  }
}


function Home() {
  return (
    <div>
      <h2>Home</h2>
    </div>
  );
}



export default App;
